﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SemanticEx.Extensions;
using System.Text.RegularExpressions;

namespace SemanticEx
{
    public static class Mark
    {
        private static Regex _regExFirst;
        private static Regex regExFirst
        {
            get
            {
                if (_regExFirst == null)
                {
                    _regExFirst = new Regex(string.Empty).First();
                }
                return _regExFirst;
            }
        }

        private static Regex _regExLast;
        private static Regex regExLast
        {
            get
            {
                if (_regExLast == null)
                {
                    _regExLast = new Regex(string.Empty).Last();
                }
                return _regExLast;
            }
        }

        public static Regex First()
        {
            return regExFirst;
        }

        public static Regex Last()
        {
            return regExLast;
        }
    }
}
